package com.jkhan.design;

import com.alibaba.fastjson.JSON;
import com.jkhan.design.mq.CreateAccount;

/**
 * @ClassName CreateAccountMqService
 * @Description CreateAccountMqService
 * @Author hjk
 * @Date 2023/2/13 23:09
 **/
public class CreateAccountMqService {

    public void onMessage(String message) {
        CreateAccount mq = JSON.parseObject(message, CreateAccount.class);

        mq.getNumber();
        mq.getAccountDate();

        // ... 处理⾃⼰的业务
    }

}
